<!--#include file="lib/utf-8.asp"-->
<!--#include file="lib/conn.asp"-->
<%
If (Request.QueryString("hxid") <> "") Then
  hxid = Request.QueryString("hxid")
End If
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="lib/sheet.css" type="text/css">
<title>无标题文档</title>
</head>

<body>
<%

if request.form("mm_edit")<>"" then
	if request.Form("huanxiang")<>"" then huanxiang=request.Form("huanxiang")
	if request.Form("huanxiangjiage")<>"" then huanxiangjiage=request.Form("huanxiangjiage")
	if huanxiangjiage="" then huanxiangjiage=0
	set cmd=Server.CreateObject("ADODB.Command")
	cmd.ActiveConnection = conn
	sql="update hx set huanxiang='"&huanxiang&"',huanxiangjiage="&huanxiangjiage&" where hxid="&hxid
	'response.Write(sql)
	'response.end
	cmd.CommandText = sql
	cmd.Execute
	view_url="manage_hx.asp"
	response.Redirect(view_url)
end if



	Set rs = Server.CreateObject("ADODB.Recordset")
	rs.ActiveConnection = conn
	rs.CursorType = 1
	rs.CursorLocation = 2
	rs.LockType = 3
	rs.Source = "SELECT * FROM hx WHERE hxid = " + Replace(hxid, "'", "''") + ""
	rs.Open()

%>

<form name="form1" method="post" action="#">
<table cellspacing="1" cellpadding="2" border="0" bgcolor="black" width="100%">
	<tr bgcolor="silver">
		<th>ID</th>
		<th>还箱</th>
		<th>价格</th>
	</tr>
	<tr align="center" bgcolor="#efefef">
		<td><%=rs("hxid")%></td>
		<td><input name="huanxiang" type="text" value=<%=rs("huanxiang")%>></td>
		<td><input name="huanxiangjiage" type="text" value=<%=rs("huanxiangjiage")%>></td>
	</tr>
	<tr bgcolor="silver">
		<td colspan="3" align="center"><input type="submit" name="Submit" value="提交">&nbsp;&nbsp;&nbsp;&nbsp;<input type="reset" name="Reset" value="重置"><input type="hidden" name="mm_edit" value="true"></td>
	</tr>
</table>
</form>
<p><a href="javascript:history.go(-1)">&lt;&lt;返回上一页</a></p>
</body>
</html>
<%
rs.Close()
Set rs = Nothing
%>

